<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>网页响应时间测试器</title>
    <link rel="stylesheet" href="css/style.css">
    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
</head>
<body>
    <div class="container">
        <h1>网页响应时间测试器</h1>
        
        <div class="input-section">
            <input type="text" id="url-input" placeholder="请输入要测试的URL（如 https://www.example.com）">
            <select id="test-count">
                <option value="3">测试3次</option>
                <option value="5" selected>测试5次</option>
                <option value="10">测试10次</option>
            </select>
            <button id="test-button">开始测试</button>
        </div>
        
        <div class="results-section">
            <div class="loading" id="loading-indicator">
                <div class="spinner"></div>
                <p>测试中，请稍候...</p>
            </div>
            
            <div class="result-cards" id="result-cards">
                <!-- 结果卡片将通过JavaScript动态生成 -->
            </div>
            
            <div class="chart-container">
                <canvas id="response-chart"></canvas>
            </div>
            
            <div class="summary" id="summary">
                <!-- 测试结果摘要将通过JavaScript动态生成 -->
            </div>
        </div>
    </div>
    
    <footer>
        <p>网页响应时间测试器 &copy; 2023</p>
    </footer>
    
    <script src="js/app.js"></script>
</body>
</html> 